import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {AftWorkOrderComponent} from './aft-work-order.component';

const routes: Routes = [
    {path: '', component: AftWorkOrderComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-aft-work-order/add-aft-work-order.module#AddAftWorkOrderModule'},
            {path: 'list', loadChildren: './list-aft-work-order/list-aft-work-order.module#ListAftWorkOrderModule'},
            {path: 'modify', loadChildren: './modify-aft-work-order/modify-aft-work-order.module#ModifyAftWorkOrderModule'},
            {path: 'report', loadChildren: './report-aft-work-order/report-aft-work-order.module#ReportAftWorkOrderModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class AftWorkOrderRoutingModule {
}
